package org.wang.portal.brm;

import java.util.HashMap;
import java.util.Map;

public class BreakpointResumeManager {
    private Map<String, Long> breakpoints;

    public BreakpointResumeManager() {
        this.breakpoints = new HashMap<>();
    }

    public void saveBreakpoint(String taskName, long position) {
        breakpoints.put(taskName, position);
    }

    public long getBreakpoint(String taskName) {
        return breakpoints.getOrDefault(taskName, 0L);
    }
}
